package cn.aitrox.ry.service.config.enumtype;

import org.apache.commons.lang3.StringUtils;

public enum ImageLayoutEnum {
    MPR_ANNO("MPR_ANNO", "MPR标注布局"),
    MPATHOLOGYPR_ANNO("MPATHOLOGYPR_ANNO", "病理标注布局"),
    VIDEO_ANNO("VIDEO_ANNO", "视频标注布局");

    private String value;

    private String desc;

    ImageLayoutEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static ImageLayoutEnum getEnumByValue(String value) {
        if (StringUtils.isEmpty(value)) {
            return null;
        }
        for (ImageLayoutEnum imageLayoutEnum : ImageLayoutEnum.values()) {
            if (imageLayoutEnum.getValue().equals(value)) {
                return imageLayoutEnum;
            }
        }
        return null;
    }
}
